package org.dromara.bean.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.util.Date;

/**
 * 答题记录对象 his_questionnaire_answer
 *
 * @author Lion Li
 * @date 2024-12-02
 */
@Data
@TableName("his_questionnaire_answer")
public class HisQuestionnaireAnswer {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 会员id
     */
    private Long memberId;

    /**
     * 问卷id
     */
    private Long questionnaireId;

    /**
     * 答题记录
     */
    private String answer;

    /**
     *
     */
    @TableLogic
    private Long delFlag;


    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
